import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import pinia from './stores'

// 导入全局样式
import '@/styles/index.scss'

// 引入vant消息提示样式
import 'vant/es/toast/style'
import 'vant/es/dialog/style'
import 'vant/es/image-preview/style'

// 注册图标
import 'virtual:svg-icons-register'

// 1. 创建根实例
const app = createApp(App)

console.log('访问环境变量：', import.meta.env)

// 2. 注册pinia
app.use(pinia)
// 注册路由
app.use(router)

app.mount('#app')
